package com.js.auth.server.module.oauth.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author： ygl
 * @date： 2018/10/30
 * @Description：
 * spring security开启jdbc校验client时，默认的表是oauth_client_details
 * 具体可查TokenEndpoint和JdbcClientDetailsService
 */
@Data
public class OauthClientDetails implements Serializable {

    @Id
    private String clientId;

    private String resourceIds;

    private String clientSecret;

    private String scope;

    private String authorizedGrantTypes;

    private String webServerRedirectUri;

    private String authorities;

    private Integer accessTokenValidity;

    private Integer refreshTokenValidity;

    private String additionalInformation;

    private String autoapprove;

    /**
     * 创建者ID
     */
    private String createUserId;
    /**
     * 创建者名称
     */
    private String createUserName;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新者ID
     */
    private String updateUserId;
    /**
     * 更新者名称
     */
    private String updateUserName;
    /**
     * 更新时间
     */
    private Date updateTime;

    private String isDeleted;

    private String isDisabled;
}
